use std::ffi::CString;
use std::os::raw::c_char;
macro_rules! alloc_test {
    () => {
        alloc_test::malloc;
        alloc_test::free;
        alloc_test::realloc;
        alloc_test::calloc;
        alloc_test::strdup;
    };
}
type UnitTestFunction = fn() -> ();
pub fn run_test(test: UnitTestFunction) {
    alloc_test_set_limit(-1);
    test();
    assert!(alloc_test_get_allocated() == 0);
}
pub fn run_tests(tests: &[UnitTestFunction]) {
    let mut i = 0;
    while tests[i] != None {
        run_test(tests[i]);
        i += 1;
    }
}
pub fn null_test_function() {}
